/**
 * <p>Title: FactoryProducer.java>
 * <p>Description: 
 * <p>Company: YSS
 * @author yangsongsong
 * @date 2019年1月1日
 */
package com.yss.factory;

public class FactoryProducer {
	public static AbstractFactory getFactory(String choice) {
		if (choice.equalsIgnoreCase("SHAPE")) {
			return new ShapeFactory();
		} else if (choice.equalsIgnoreCase("COLOR")) {
			return new ColorFactory();
		}
		return null;
	}
}
